/*
 * WidgetConfigEvent.hpp
 *
 *  Created on: 2010-4-22
 *      Author: anod
 */

#ifndef WIDGETCONFIGEVENT_HPP_
#define WIDGETCONFIGEVENT_HPP_

#include <Event.hpp>
#include <QString>
#include <Common/CustomEvent.hpp>

namespace AppConfig
{

class WidgetConfigEvent:public Event
{
	// $$构造函数
public:
	WidgetConfigEvent(long _id, int code_, const QString& old_value, const QString& value_);
	// $$成员列表
public:
	int            code;
	const QString  oldValue;
	const QString  value;
	// $$内部成员编号
public:
	static const int WCE_INTERVAL_CODE=1;
	static const int WCE_URL_CODE=2;
	static const int WCE_SCRIPT_CODE=3;
	static const int WCE_POLICY_CODE=4;
	static const int WCE_SHLIB_CODE=5;
	// $$自定义事件编号
public:
	static const int VALUE_DIRTY = CUSTOM_EVENT_START+WIDGET_CONFIG_EVENT_BASE;
};

}

#endif /* WIDGETCONFIGEVENT_HPP_ */
